<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;


/**
 * App\Models\ShopVisitor
 *
 * @property int $id
 * @property int $shop_id
 * @property int $uid
 * @property string $username
 * @property string $url
 * @property string $ip
 * @property string $visit_date
 * @property string $visit_at
 * @property-read \App\Models\Shop $shop
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopVisitor whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopVisitor whereIp($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopVisitor whereShopId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopVisitor whereUid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopVisitor whereUrl($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopVisitor whereUsername($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopVisitor whereVisitAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopVisitor whereVisitDate($value)
 * @mixin \Eloquent
 */
class ShopVisitor extends Model
{
    protected $table = 'shop_visitor';
    protected $primaryKey = 'id';
    protected $guarded = ['id'];

    public $timestamps = false;

    public function shop()
    {
        return $this->belongsTo(Shop::class, 'shop_id', 'shop_id');
    }
}
